home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: Conditional operator overload (? :)?
- Date: 14 Mar 1996 18:01:18 GMT
- Organization: Netcom
- Distribution: All
- Message-ID: <4i9mte$2m1@cloner3.netcom.com>
- References: <4i9gb2$29n@natasha.rmii.com>
- NNTP-Posting-Host: den-co7-20.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Thu Mar 14 10:01:18 AM PST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <4i9gb2$29n@natasha.rmii.com>, disch@aartronics.com says...
- >
- >We have a Boolean class and we were wondering if there was a reasonable way
- >to overload the conditional operator ( ? : )?
-
- You can't. This is one of the non-overloadable operators.
-
- FYI: ANSI C++ is adding a bool intrinsic type, so you may want to check to
- see if your compiler has it, and use it if so...
-
- john
-
-